﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceCream.icemodel
{
    /// <summary>
    /// 判断模块中各个部分
    /// </summary>
    public class DiaitalBool
    {
        private static DiaitalBool instance;
        private DiaitalBool() { }

        public static DiaitalBool Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DiaitalBool();
                }
                return instance;
            }
        }
        /// <summary>
        /// 冰淇淋出餐  true开 false关
        /// </summary>
        public bool BQLCCJC_Bol { get; set; } = false;
        /// <summary>
        /// 茶杯出餐 true开 false关
        /// </summary>
        public bool NCCCJC_Bol { get; set; } = false;
        /// <summary>
        /// 奶茶1  true开 false关
        /// </summary>
        public bool NC1_Bol { get; set; } = false;
        /// <summary>
        /// 奶茶2 true开 false关
        /// </summary>
        public bool NC2_Bol { get; set; } = false;
        /// <summary>
        /// 奶茶3 true开 false关
        /// </summary>
        public bool NC3_Bol { get; set; } = false;
        /// <summary>
        /// 奶茶4  true开 false关
        /// </summary>
        public bool NC4_Bol { get; set; } = false;
        /// <summary>
        /// 奶茶5 true开 false关
        /// </summary>
        public bool NC5_Bol { get; set; } = false;
        /// <summary>
        /// 奶茶6 true开 false关
        /// </summary>
        public bool NC6_Bol { get; set; } = false;
        /// <summary>
        /// 安全光栅
        /// </summary>
        public bool BANNER_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 取杯成功检测
        /// </summary>
        public bool TakeCup_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 出餐杯子检测
        /// </summary>
        public bool OutMealCup_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆上限检测
        /// </summary>
        public bool PushRodUP_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆下限检测
        /// </summary>
        public bool PushRodDown_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水预报警
        /// </summary>
        public bool WaterYBJ_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 牛奶1预报警
        /// </summary>
        public bool Milk1YBJ_Sel_Bol { get; set; } = true;
        /// <summary>
        /// 牛奶2预报警
        /// </summary>
        public bool Milk2YBJ_Sel_Bol { get; set; } = true;
        ///// <summary>
        ///// 电机上限检测1
        ///// </summary>
        //public bool MotorUP1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 杯子供料检测1
        /// </summary>
        public bool CupFeed1_Sel_Bol { get; set; } = false;
        ///// <summary>
        ///// 杯子供料检测2
        ///// </summary>
        //public bool CupFeed2_Sel_Bol { get; set; } = false;
        ///// <summary>
        ///// 电机原点检测2
        ///// </summary>
        //public bool MotorOriginalPoint2_Sel_Bol { get; set; } = false;
        ///// <summary>
        ///// 电机上限检测2
        ///// </summary>
        //public bool MotorUP2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 杯子供料检测2
        /// </summary>
        public bool CupFeed2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 咖啡豆检测1
        /// </summary>
        public bool CoffeeBean1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 咖啡豆检测2
        /// </summary>
        public bool CoffeeBean2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 巧克力粉检测
        /// </summary>
        public bool ChocolatePowder_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 牛奶检测1
        /// </summary>
        public bool Milk1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 牛奶检测2
        /// </summary>
        public bool Milk2_Sel_Bol { get; set; } = false;
        ///// <summary>
        ///// 升杯按钮1
        ///// </summary>
        //public bool UPCupBtn1_Sel_Bol { get; set; } = false;
        ///// <summary>
        ///// 升杯按钮2
        ///// </summary>
        //public bool UPCupBtn2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水检测
        /// </summary>
        public bool Water_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测1
        /// </summary>
        public bool Fructose1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测2
        /// </summary>
        public bool Fructose2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测3
        /// </summary>
        public bool Fructose3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 牛奶检测小
        /// </summary>
        public bool MilkMin_Sel_Bol { get; set; } = true;
    }
    /// <summary>
    /// 存储物料信息和设备信息
    /// </summary>
    public class saveDeviceMatter
    {
        public string matterStatusJson { get; set; }
        public string deviceStatusJson { get; set; }
        public int deviceId { get; set; } = 3;
    }
    public class CoffeeMatters
    {
        private static CoffeeMatters instance;
        private CoffeeMatters() { }

        public static CoffeeMatters Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new CoffeeMatters();
                }
                return instance;
            }
        }
        ///// <summary>
        ///// 茶冰
        ///// </summary>
        //public string TeaMatter1 { get; set; } = "0";
        ///// <summary>
        ///// 茶水
        ///// </summary>
        //public string TeaMatter2 { get; set; } = "0";
        ///// <summary>
        ///// 茶中注塑杯
        ///// </summary>
        //public string TeaMatter3 { get; set; } = "0";
        ///// <summary>
        ///// 茶大注塑杯
        ///// </summary>
        //public string TeaMatter4 { get; set; } = "0";
        ///// <summary>
        ///// 茶中纸杯
        ///// </summary>
        //public string TeaMatter5 { get; set; } = "0";
        ///// <summary>
        ///// 茶大纸杯
        ///// </summary>
        //public string TeaMatter6 { get; set; } = "0";
        ///// <summary>
        ///// 茶pp杯
        ///// </summary>
        //public string TeaMatter7 { get; set; } = "0";
        ///// <summary>
        ///// 茶方瓶
        ///// </summary>
        //public string TeaMatter8 { get; set; } = "0";
        ///// <summary>
        ///// 茶糖
        ///// </summary>
        //public string TeaMatter9 { get; set; } = "0";
        ///// <summary>
        ///// 茶珍珠
        ///// </summary>
        //public string TeaMatter10 { get; set; } = "0";
        ///// <summary>
        ///// 茶椰果
        ///// </summary>
        //public string TeaMatter11 { get; set; } = "0";
        ///// <summary>
        ///// 茶糖1
        ///// </summary>
        //public string TeaMatter12 { get; set; } = "0";
        /// <summary>
        /// 咖啡冰
        /// </summary>
        public int CoffeMatter1 { get; set; } = 0;
        /// <summary>
        /// 咖啡水
        /// </summary>
        public int CoffeMatter2 { get; set; } = 0;
        /// <summary>
        /// 咖啡4oz
        /// </summary>
        public int CoffeMatter3 { get; set; } = 0;
        /// <summary>
        /// 咖啡8oz
        /// </summary>
        public int CoffeMatter4 { get; set; } = 0;
        /// <summary>
        /// 咖啡12oz
        /// </summary>
        public int CoffeMatter5 { get; set; } = 0;
        /// <summary>
        /// 咖啡白砂糖
        /// </summary>
        public int CoffeMatter6 { get; set; } = 0;
        /// <summary>
        /// 咖啡方糖
        /// </summary>
        public int CoffeMatter7 { get; set; } = 0;
        /// <summary>
        /// 咖啡黄糖
        /// </summary>
        public int CoffeMatter8 { get; set; } = 0;
        /// <summary>
        /// 咖啡人工代糖
        /// </summary>
        public int CoffeMatter9 { get; set; } = 0;
        /// <summary>
        /// 咖啡咖啡豆1
        /// </summary>
        public int CoffeMatter11 { get; set; } = 0;
        /// <summary>
        /// 咖啡咖啡豆2
        /// </summary>
        public int CoffeMatter13 { get; set; } = 0;
        /// <summary>
        /// 咖啡奶1
        /// </summary>
        public int CoffeMatter10 { get; set; } = 0;
        /// <summary>
        /// 咖啡奶2
        /// </summary>
        public int CoffeMatter12 { get; set; } = 0;
        ///// <summary>
        ///// 冰淇淋碗
        ///// </summary>
        //public string CreamMatter1 { get; set; } = "0";
        ///// <summary>
        ///// 冰淇淋草莓酱
        ///// </summary>
        //public string CreamMatter2 { get; set; } = "0";
        ///// <summary>
        ///// 冰淇淋蓝莓酱
        ///// </summary>
        //public string CreamMatter3 { get; set; } = "0";
        ///// <summary>
        ///// 冰淇淋花生碎
        ///// </summary>
        //public string CreamMatter4 { get; set; } = "0";
    }
    public class deviceStatus
    {
        private static deviceStatus instance;
        private deviceStatus() { }

        public static deviceStatus Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new deviceStatus();
                }
                return instance;
            }
        }
        /// <summary>
        /// 奶茶
        /// </summary>
        public int deviceStatus1 { get; set; } = 1;
        /// <summary>
        /// 咖啡
        /// </summary>
        public int deviceStatus2 { get; set; } = 1;
        /// <summary>
        /// 冰淇淋
        /// </summary>
        public int deviceStatus3 { get; set; } = 1;
        /// <summary>
        /// 小吃
        /// </summary>
        public int deviceStatus4 { get; set; } = 0;
        /// <summary>
        /// 拉花打印
        /// </summary>
        public int lhStatus { get; set; } = 1;
    }
}
